<%-- 
    Document   : affichagePanier
    Created on : 18 déc. 2012, 16:25:53
    Author     : pimas007
--%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setBundle basename="packageLangue.lang" scope="session"/>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="pagename" scope="request" value="confirmCommand.jsp"/>
<jsp:include page="header.jsp"></jsp:include>

    <div id="content">
        <div id="top">
                <h1><fmt:message key="Commande_Titre"/></h1>
        </div>
        <div id="milieu">
            <div id="texte">   
                <h2><fmt:message key="Commande_Titre2"/></h2>
                <p><fmt:message key="Commande_Recap"/></p>
                <br/><br/>
                <div><fmt:message key="Commande_Client"/> ${Commande.getNumCli()}</div>
                <br/>
                <div><fmt:message key="Commande_NCom"/> ${Commande.getNumCom()}</div>
                <br/>
                    <div><fmt:message key="Commande_Date"/> ${Commande.getDateCom().getTime()}</div>
                <br/><br/><br/>
                <table id="tab_panier">
                    <tr>
                        <td><b>ISBN</b></td>
                        <td><b><fmt:message key="Panier_Titre"/></b></td>
                        <td><b><fmt:message key="Panier_Qte"/></b></td>
                        <td><b><fmt:message key="Panier_Prix"/></b></td>
                        
                    </tr>
                    <c:forEach items="${LignesCom}" var="item">
                        <tr>
                        <form action="ServletSetQte" method="post">
                            <td>${item.value.getIsbn()}</td>
                            <td>${item.value.getTitre()}</td>
                            <td>${item.value.getQte()}</td>
                            <td>${item.value.getUnitPrice()}€</td>
                            </form>
                        </tr>
                    </c:forEach>
                    <tr>
                        <td rowspan="2" style="border-bottom:0px;"></td>
                        <td rowspan="2"style="border-bottom:0px;"></td>
                        <td rowspan="2"style="border-bottom:0px;"></td>
                        <td><b>Total</b></td>
                    </tr>
                    <tr>
                        <td><b>${Commande.getTotal()}€</b></td>
                    </tr>
                </table>
            </div>  
        </div>
        <div id="bottom"></div>
    </div>

<jsp:include page="footer.jsp"></jsp:include>
